#ifndef _L298N_H
#define _L298N_H

#include "main.h"

#define MOTOR_PORT  GPIOD
#define Q_IN1  0
#define Q_IN2  1
#define Q_IN3  2
#define Q_IN4  3
#define H_IN1  4
#define H_IN2  5
#define H_IN3  6
#define H_IN4  7

void Car_run(int direc,uint8_t pwmval1, uint8_t pwmval2, uint8_t pwmval3, uint8_t pwmval4);


#endif

